/**
 * 主页子路由
 */

const router = require('koa-router')()

router.get('string', async(ctx) => {
	ctx.body = 'koa2 string'
})

router.get('json', async(ctx) => {
	ctx.body = {
		title: 'koa2 json'
	}
})

module.exports = router
